package com.xtwy.service.impl;

import com.xtwy.entity.Role;
import com.xtwy.repository.RoleRepository;
import com.xtwy.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @作 者: 侯建军
 * @日 期: 2018/7/29 17:43
 * @描 述:
 * @公 司：山西迅腾伟业
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    RoleRepository roleRepository;

    public List<Role> findAllRoles() {
        return roleRepository.findAll();
    }
}
